import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import Dictionary from '../../../components/dictionary'
//import * as Actions from '../actions/dictionary'
import {increment, decrement, incrementAsync} from '../actions/dictionary'


function mapStateToProps(state) {
    return {
        dictionary: state.dictionary
    }
}

function mapDispatchToProps(dispatch) {
    //return bindActionCreators(Actions, dispatch)
    return {
        increment: ()=> dispatch(increment()),
        decrement: ()=> dispatch(decrement()),
        incrementAsync: ()=> dispatch(incrementAsync())
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(Dictionary)